﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;

namespace URLRewriter.Config
{
    public class RewriterConfigSerializerSectionHandler : IConfigurationSectionHandler
    {
        // Methods
        public object Create(object parent, object configContext, XmlNode section)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(RewriterConfiguration));
            return serializer.Deserialize(new XmlNodeReader(section));
        }
    }

 

}
